package cn.cau.service.impl;

import cn.cau.dao.NonEnumDao;
import cn.cau.entity.NonEnum;
import cn.cau.service.NonEnumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NonEnumServiceImpl implements NonEnumService {
    @Autowired
    NonEnumDao nonEnumDao;
    @Override
    public int insertNonEnum(NonEnum nonEnum) {
        return nonEnumDao.insertNonEnum(nonEnum);
    }

    @Override
    public List<NonEnum> findNonEnumByCodeId(int codeId) {
        return nonEnumDao.findAllNoneEnumByCodeId(codeId);
    }

}
